﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbCastMemberTest and is intended
    ///     to contain all TmdbCastMemberTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbCastMemberTest
    {
        /// <summary>
        ///     A test for TmdbCastMember Constructor
        /// </summary>
        [TestMethod]
        public void TmdbCastMemberConstructorTest()
        {
            var target = new TmdbCastMember();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Character
        /// </summary>
        [TestMethod]
        public void CharacterTest()
        {
            var target = new TmdbCastMember();
            string expected = Guid.NewGuid().ToString();
            string actual;
            target.Character = expected;
            actual = target.Character;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Order
        /// </summary>
        [TestMethod]
        public void OrderTest()
        {
            var target = new TmdbCastMember();
            int expected = new Random().Next( 0, Int32.MaxValue );
            int actual;
            target.Order = expected;
            actual = target.Order;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}